<%--
  Created by IntelliJ IDEA.
  User: 肖
  Date: 2020/9/24
  Time: 22:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/bootstrap-3.3.7-dist/css/bootstrap.css">
    <script src="${pageContext.request.contextPath}/plugins/jquery/jquery.min.js"></script>
    <script src="${pageContext.request.contextPath}/plugins/bootstrap-3.3.7-dist/js/bootstrap.js"></script>
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse"
                    data-target="#example-navbar-collapse">
                <span class="sr-only">切换导航</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="../index/index.jsp">精翼</a>
        </div>
        <div class="collapse navbar-collapse" id="example-navbar-collapse">
            <ul  class="nav navbar-nav  ">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        其他 <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="#">其他</a></li>
                        <li><a href="#">其他</a></li>
                        <li><a href="#">其他</a></li>
                        <li class="divider"></li>
                        <li><a href="#">分离的链接</a></li>
                        <li class="divider"></li>
                        <li><a href="#">另一个分离的链接</a></li>
                    </ul>
                </li>
            </ul>
            <ul class="nav navbar-nav  navbar-right">
                <li ><a href="../sellCar/sellCar.jsp">我要卖车</a></li>
                <li><a href="../buyCar/buyCar.jsp">我要买车</a></li>
                <%--<li><a href="#">论坛</a></li>--%>
                <!-- <li><a href='#'><span class="badge pull-right" id='online_count'>1</span>在线人数</a></li> -->
                <!-- <li class="active"><a href="#">登录/注册</a></li> -->
                <!-- <li><a href='/success/user/exit'>安全退出</a></li> -->
                <li class="active" id="topname"></li>
                <li class="active"></li>
            </ul>
        </div>
    </div>
</nav>

<div class="container">
    <div class="middle-box text-center loginscreen   animated fadeInDown">
        <div>
            <div>
                <h1 class="logo-name">J Y</h1>
            </div>
            <h3>欢迎注册 精翼</h3>
            <p>创建一个精翼二手车新账户</p>
            <form class="m-t" role="form" method="post">

                <div class="form-group"  style="width: 400px; margin-left: 370px;">
                    <input id="username"  name='username' type="text" class="form-control" placeholder="请输入用户名" required="">
                </div>
                <div class="form-group" style="width: 400px; margin-left: 370px;">
                    <input id="phone"  name='phone' type="number" class="form-control" placeholder="请输入手机号" required="">
                    <input type="text"  id="hidden" style="font-weight: bold;color: red" value="手机号码有误，请重填">
                </div>
                <c:if test="${regError==1}">
                    <input type="text" value="该用户已存在" id="remind1" style="font-weight: bold;color: red;border: 0px solid">
                </c:if>
                <div class="form-group" style="width: 400px; margin-left: 370px;">
                    <input id="pwd"  name='pwd' type="password" class="form-control" placeholder="请输入密码" required="">
                    <input type="text"  id="hide2" style="font-weight: bold;color: red" value="密码不符合要求，请重新填写">
                </div>
                <div class="form-group text-left" style="width: 400px; margin-left: 370px;">
                    <div class="checkbox i-checks">
                        <label class="no-padding">
                            <input type="checkbox" id="check" name="check"><i></i> 我同意<a href="">注册协议</a></label>
                    </div>
                </div>
                <button id="reg" type="button" class="btn btn-primary block full-width m-b">注 册</button>

                <p class="text-muted text-center"><small>已经有账户了？</small><a href="login.jsp">点此登录</a>
                </p>

            </form>
        </div>
    </div>

</div>

<script src="${pageContext.request.contextPath}/plugins/jquery/jquery.min.js"></script>
<script src="${pageContext.request.contextPath}/plugins/bootstrap-3.3.7-dist/js//bootstrap.js"></script>
<script type="text/javascript"></script>
<script src="/prj/ajax/logRegist.js"></script>

</body>
</html>
